import request from '@/utils/request'

// 查询用户利息结算明细列表
export function listInterest(query) {
  return request({
    url: '/bank/interest/list',
    method: 'get',
    params: query
  })
}

// 查询用户利息结算明细详细
export function getInterest(id) {
  return request({
    url: '/bank/interest/' + id,
    method: 'get'
  })
}

// 新增用户利息结算明细
export function addInterest(data) {
  return request({
    url: '/bank/interest',
    method: 'post',
    data: data
  })
}

// 修改用户利息结算明细
export function updateInterest(data) {
  return request({
    url: '/bank/interest',
    method: 'put',
    data: data
  })
}

// 删除用户利息结算明细
export function delInterest(id) {
  return request({
    url: '/bank/interest/' + id,
    method: 'delete'
  })
}
